package com.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
public enum YesEnum {
    YES(1, "是"),
    NO(0, "否");
    private int code;
    private String value;

    // Lombok 自动为枚举生成的构造器就已经足够了，避免使用 @AllArgsConstructor
    YesEnum(int code, String value) {
        this.code = code;
        this.value = value;
    }
}
